﻿<%@ Page Language="C#" validateRequest="false" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="SzCourt.WebSite.facebook.index" %>

<%@ Register Src="~/control/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="~/control/footer.ascx" TagName="footer" TagPrefix="uc2" %>
<%@ Register src="~/control/pager.ascx" tagname="pager" tagprefix="uc3" %>
<%@ Register src="~/control/menu.ascx" tagname="menu" tagprefix="uc4" %>
<%@ Register src="~/control/partselect.ascx" tagname="partselect" tagprefix="uc5" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>意见箱 - 深圳市中级人民法院 </title>
    <meta id="ctl00_KeyWD" content="深圳,中级,法院,诉讼,政府" name="Keywords" />
    <meta id="ctl00_desP" content="深圳市中级人民法院" name="description" />
    <link href="/images/skin2010/base.css" rel="stylesheet" type="text/css" />
    <script src="/js/sw.js" type="text/javascript"></script>
</head>
<body>
    <div id="SZCOURT">
        <uc1:header ID="header1" runat="server" />
        <div class="content">
            <div class="dl">
                <uc4:menu ID="menu1" runat="server" />
            </div>
            <div class="dr">
                <uc5:partselect ID="partselect1" runat="server" />
                <div class="tab">
                    <div class="tt">
                        <h3>意见箱</h3>
                        <em class="right" ><a class="clr13b" id="emly" runat="server" href="/shenwu/login/login.aspx">我要留言</a><a class="clr13b g_dn" id="ahreftblmes" runat="server" href="#tblmes">我要留言</a></em>
                        <p class="clear"></p>
                    </div>
                    <div class="g_cf">
                        <asp:Repeater runat="Server" ID="rptDataList">
                            <ItemTemplate>
                                <table cellpadding="0" cellspacing="0" class="frm w800">
                                    <tr>
                                        <td <%# Eval("PublishType")!=null?(Eval("PublishType").ToString()!= "1" ?"":"class=\"bg39c\""):"" %> ><span class="right"><%#Eval("AddDateTime")%></span>留言者：<%#Eval("AddUserName")%></td>
                                    </tr>
                                    <tr>
                                        <td class="g_t2em clr444 pdn10"><%#Eval("Questions")%></td>
                                    </tr>

                                    <tr>
                                        <td class="clr444"><span class="bold"><%#Eval("AnswerDept")%></span>回复：<span class="clr13b"><%#Eval("Answer")!=null?(Eval("Answer").ToString().Length == 0 ? "暂未回复" : Eval("Answer").ToString()):""%></span></td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:Repeater>
                        <div class="mgn10 g_tc g_dn" id="noData" runat="server">
                            没有留言信息!
                         </div>  
                    </div>
                    
                    <div class="page">
                        <uc3:pager ID="pager1" runat="server" />
                    </div>
                    <div style="border-top:2px solid #13B0FF;margin-top:30px;" class="g_dn" id="divSendMessage" runat="server">
                        
                        <form name="form1" action="success.aspx" method="post" onsubmit="CheckMessage();">
                        <table cellpadding="0" cellspacing="0" class="frm w800" id="tblmes">
                            <thead>
                            <tr>
                                <th colspan="2"><span class="left clr13b">我要留言</span><!--<span class="right">登录后才能留言<a href="/shenwu/login/login.html" class="lgn">登录</a><a href="/shenwu/login/reg.html" class="lgn">注册</a></span>--></th>
                            </tr>
                            </thead>
                            <tbody >
                            <tr>
                                <td style="text-align:right;">留言给哪个部门：</td>
                                <td>
                                    <select id="sltDept" name="sltDept">
                                        <option value=""></option>
                                        <option value="政治部">政治部</option>
                                        <option value="干部处">干部处</option>
                                        <option value="教育培训处">教育培训处</option>
                                        <option value="执行局">执行局</option>
                                        <option value="综合处">综合处</option>
                                        <option value="执行一处">执行一处</option>
                                        <option value="执行二处">执行二处</option>
                                        <option value="监察室">监察室</option>
                                        <option value="办公室">办公室</option>
                                        <option value="研究室">研究室</option>
                                        <option value="审管办">审管办</option>
                                        <option value="立案庭">立案庭</option>
                                        <option value="审监庭">审监庭</option>
                                        <option value="刑一庭">刑一庭</option>
                                        <option value="刑二庭">刑二庭</option>
                                        <option value="民事庭">民事庭</option>
                                        <option value="商事庭">商事庭</option>
                                        <option value="涉外商事庭">涉外商事庭</option>
                                        <option value="房地产庭">房地产庭</option>
                                        <option value="劳动争议庭">劳动争议庭</option>
                                        <option value="公司清算和破产庭">公司清算和破产庭</option>
                                        <option value="法警支队">法警支队</option>
                                        <option value="书记员处">书记员处</option>
                                        <option value="行装处">行装处</option>
                                        <option value="其他">其他</option>
                                    </select>
                                    <input type="hidden" id="txtDept" name="txtDept" value="" />
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:right;">内容：</td>
                                <td><textarea class="tarea" id="txtContent" name="txtContent"></textarea></td>
                            </tr>
                            <tr>
                                <td style="padding-left:185px;" colspan="2"><input type="submit" value="提交留言" class="w80" /></td>
                            </tr>
                            </tbody>
                        </table>
                        </form>
                    </div>
                </div>
                
                
            </div>
            <div class="g_cf">
            </div>
        </div>

        <uc2:footer ID="footer1" runat="server" />
    </div>
</body>
</html>
<script type="text/javascript">
    function CheckMessage() {
        var txtDept = "";

        var sltCaseWord = document.getElementById("sltDept").options;
        for (i = 0; i < sltCaseWord.length; i++) {
            var op = sltCaseWord[i];
            if (op.selected) {
                document.getElementById("txtDept").value = op.value;
                txtDept = op.value;
            }
        }

        var txtContent = document.getElementById("txtContent").value;
        if (txtDept.length <= 0) {
            alert("请选择留言部门！");
            return false;
        }
        if (txtContent.length <= 0) {
            alert("请输入留言内容！");
            return false;
        }

        return true;
    }
</script>